using System.IO;
using System.Web.UI;
using System.Web.UI.Design;

namespace Library.WebControls.SimplePopup {
	public class SpPopupDesign : ControlDesigner {
		public override string GetDesignTimeHtml() {
			var pu = (SpPopup)Component;
			var sw = new StringWriter();
			var html = new HtmlTextWriter(sw);
			foreach (Control control in pu.PopupContent.Controls) {
				control.RenderControl(html);
			}

			return sw.ToString();
		}
	}
}